package com.baize.minespace.service.impl;

import com.baize.minespace.mapper.ResourcesMapper;
import com.baize.minespace.pojo.Resources;
import com.baize.minespace.service.ResourcesService;
import com.baize.minespace.utils.Result;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 资源信息表 服务实现类
 * </p>
 *
 * @author baize
 * @since 2024-04-15
 * @version ${cfg.version}
 */
@Service
public class ResourcesServiceImpl extends ServiceImpl<ResourcesMapper, Resources> implements ResourcesService {
    @Override
    public Result<IPage<Resources>>selectResourcesPage(Integer rows,Integer page,Resources resources){
        Page<Resources> resourcesPage=new Page<>(rows,page);
        IPage<Resources> resourcesIPage=baseMapper.selectResourcesPage(resourcesPage, resources);
        return Result.success(resourcesIPage);
    }
}
